package com.etc.youkeshoppingssm.entity;

import java.io.Serializable;
import java.math.BigDecimal;

public class Goods implements Serializable {
    private int id;
    private String name;
    private String desc;
    private BigDecimal price;
    private int count;
    private Category categoryId;
    private CategorySub categorySubId;
    private int businessId;
    private String photoUrl;

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", desc='" + desc + '\'' +
                ", price=" + price +
                ", count=" + count +
                ", categoryId=" + categoryId +
                ", categorySubId=" + categorySubId +
                ", businessId=" + businessId +
                ", photoUrl='" + photoUrl + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Category getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Category categoryId) {
        this.categoryId = categoryId;
    }

    public CategorySub getCategorySubId() {
        return categorySubId;
    }

    public void setCategorySubId(CategorySub categorySubId) {
        this.categorySubId = categorySubId;
    }

    public int getBusinessId() {
        return businessId;
    }

    public void setBusinessId(int businessId) {
        this.businessId = businessId;
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl;
    }

    public Goods(String name, String desc, BigDecimal price, int count, Category categoryId, CategorySub categorySubId, int businessId, String photoUrl) {
        this.name = name;
        this.desc = desc;
        this.price = price;
        this.count = count;
        this.categoryId = categoryId;
        this.categorySubId = categorySubId;
        this.businessId = businessId;
        this.photoUrl = photoUrl;
    }

    public Goods() {
    }
}
